/* 页面加载动画 */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.page-loader.active {
  opacity: 1;
}
.page-loader.fade-out {
  opacity: 0;
}
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right,  var(--primary-color));
  z-index: 1000;
  transition: width 0.3s ease;
}


/* 视口触发动画效果 */
.animate-down-move-up  {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-down-move-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* 从左滑入效果 */
.animate-left-move-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-left-move-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* 从右滑入效果 */
.animate-right-move-left {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-right-move-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* 缩放效果 */
.animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* 旋转效果 */
.animate-rotate {
  opacity: 0;
  transform: rotate(-10deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-rotate.active {
  opacity: 1;
  transform: rotate(0);
}

/* 淡入效果 */
.animate-fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.animate-fade.active {
  opacity: 1;
}

/* 弹跳效果 */
.animate-bounce {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-bounce.active {
  opacity: 1;
  transform: scale(1);
}


    /* 弹窗动画效果 - 不依赖JS添加active类 */
    .school-popup-animation {
      animation: slide-in-right 0.8s ease forwards;
    }
    
    @keyframes slide-in-right {
      from {
        opacity: 0;
        transform: translateX(100px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* 从下到上 */
    .bown-move-up {
      animation: slide-in-bottom 0.5s ease forwards;
    }

    @keyframes slide-in-bottom {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* 从下到上 */
    .up-move-down {
      animation: slide-in-bottom 0.5s ease forwards;
    }

    @keyframes slide-in-bottom {
      from {
        opacity: 0;
        transform: translateY(-50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }